import { instance } from "./axios";

export function GetAllGoods(data){
    return instance({
        url: "getAllGoods",//baseURL+url  http://localhost:8080:getAllGoods
        method:"get",
        params:data
   } )
}

export function AddGoods(data){
    return instance({
        url:"addGoods",
        method:"post",
        params:data
    })
}

export function DeleteGoods(data){
    return instance({
        url:"deleteGoods",
        method:"post",
        params:data
    })
}

export function EditGoods(data){
    return instance({
        url:"editGoods",
        method:"post",
        params:data
    })
}